package com.cxd.performance.enums;


import com.cxd.performance.service.IBusinessException;

/**
 * Author: Calvin
 * Date: 2019-08-30 8:40
 * Description: 邮件相关异常码
 */
public enum MailCodeEnum implements IBusinessException {

    MAIL_TO_NONULL("2001", "收件人邮箱地址不能为空"),
    MAIL_SUBJECT_NONULL("2002","邮件主题不能为空"),
    MAIL_CONTENT_NONULL("2003","邮件内容不能为空"),
    MAIL_ADDR_INVALID("2004", "收件人邮箱地址格式错误"),
    MAIL_FILEPATH_NONULL("2005", "文件路径不能为空"),
    MAIL_SRCID_NONULL("2006", "文件路径不能为空"),

        ;


    private String code;
    private String msg;

    private MailCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String toString() {
        return "MailCodeEnum{code='" + this.code + '\'' + ", msg='" + this.msg + '\'' + '}';
    }

}
